namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("CUSTOMER_PROD_LIST_ITEMS")]
    public class CUSTOMER_PROD_LIST_ITEMS : ObjectRow {
        
        public CUSTOMER_PROD_LIST_ITEMS() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public CUSTOMER_PROD_LIST_ITEMS(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected CUSTOMER_PROD_LIST_ITEMS(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }
        
        [Key("ID",true,true)]
        public decimal ID {
            get {
                return (System.Decimal)GetValue("ID");
            }
            set {
                SetValue("ID", value);
            }
        }
        
        [Field("CUSTOMER_PRODUCT_LIST_ID")]
        public decimal CUSTOMERPRODUCTLISTID {
            get {
                return (System.Decimal)GetValue("CUSTOMERPRODUCTLISTID");
            }
            set {
                SetValue("CUSTOMERPRODUCTLISTID", value);
            }
        }
        
        [Field("PRODUCT_ID")]
        public decimal PRODUCTID {
            get {
                return (System.Decimal)GetValue("PRODUCTID");
            }
            set {
                SetValue("PRODUCTID", value);
            }
        }

        [Field("DOMAIN_ID")]
        public decimal DOMAIN_ID
        {
            get
            {
                return (System.Decimal)GetValue("DOMAIN_ID");
            }
            set
            {
                SetValue("DOMAIN_ID", value);
            }
        }

        [Field("INTERNAL_CODE")]
        public string INTERNALCODE {
            get {
                return (System.String)GetValue("INTERNALCODE");
            }
            set {
                SetValue("INTERNALCODE", value);
            }
        }
        
        [Field("PIECE_PRICE")]
        public decimal PIECEPRICE {
            get {
                return (System.Decimal)GetValue("PIECEPRICE");
            }
            set {
                SetValue("PIECEPRICE", value);
            }
        }
        
        [Field("DISCOUNT_ID")]
        public decimal DISCOUNTID {
            get {
                return (System.Decimal)GetValue("DISCOUNTID");
            }
            set {
                SetValue("DISCOUNTID", value);
            }
        }


        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public long LAST_UPDATE_TIME
        {
            get
            {
                return (long)GetValue("LAST_UPDATE_TIME", DateTime.Now);
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("CREATE_TIME")]
        public long CREATETIME
        {
            get
            {
                return (long)GetValue("CREATETIME", DateTime.Now);
            }
            set
            {
                SetValue("CREATETIME", value);
            }
        }

        [Field("FLAG")]
        public int FLAG
        {
            get
            {
                return (System.Int32)GetValue("FLAG", false);
            }
            set
            {
                SetValue("FLAG", value);
            }
        }

        [Field("ACTIVE")]
        public Boolean ACTIVE
        {
            get
            {
                return (System.Boolean)GetValue("ACTIVE", false);
            }
            set
            {
                SetValue("ACTIVE", value);
            }
        }
        
       
        [Field("CASE_PRICE")]
        public decimal CASEPRICE {
            get {
                return (System.Decimal)GetValue("CASEPRICE");
            }
            set {
                SetValue("CASEPRICE", value);
            }
        }
        
        [Field("DISPLAY_SEQUENCE")]
        public decimal DISPLAYSEQUENCE {
            get {
                return (System.Decimal)GetValue("DISPLAYSEQUENCE");
            }
            set {
                SetValue("DISPLAYSEQUENCE", value);
            }
        }
        
        [Field("BDF_MAX")]
        public decimal BDFMAX {
            get {
                return (System.Decimal)GetValue("BDFMAX");
            }
            set {
                SetValue("BDFMAX", value);
            }
        }
        
        [Field("BDF_DEFAULT")]
        public decimal BDFDEFAULT {
            get {
                return (System.Decimal)GetValue("BDFDEFAULT");
            }
            set {
                SetValue("BDFDEFAULT", value);
            }
        }
        
        [Field("TPR_DISCOUNT")]
        public decimal TPRDISCOUNT {
            get {
                return (System.Decimal)GetValue("TPRDISCOUNT");
            }
            set {
                SetValue("TPRDISCOUNT", value);
            }
        }
        
        [Field("TPR_START_date")]
        public System.DateTime TPRSTARTdatetime {
            get {
                return (System.DateTime)GetValue("TPRSTARTdatetime");
            }
            set {
                SetValue("TPRSTARTdatetime", value);
            }
        }
        
        [Field("TPR_END_date")]
        public System.DateTime TPRENDdatetime {
            get {
                return (System.DateTime)GetValue("TPRENDdatetime");
            }
            set {
                SetValue("TPRENDdatetime", value);
            }
        }
    }
}
